package 行为型模式.状态模式.after优化栈溢出;

public class Client {
    public static void main(String[] args) {
        //创建环境角色对象
        Context context=new Context();

        //设置当前电梯状态
        context.setLiftState(new ClosingState());

        context.open();
        context.close();
        context.run();
        context.stop();
    }
}
